<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BOSS.Framework.Search.Result.ISearchResult>" %>
<%@ Import Namespace="BOSS.Domain.Customers" %>
<%@ Import Namespace="BOSS.Web.Extensions" %>

<%
    var data = new
    {
        totalCount = Model.TotalCount,
        rows = Model.UnderlayerItems.OfType<Customer>().Select(x => new 
        {
            Id = x.Id,
            Url = Url.Action("Details", "Customer", new { id = x.Id }),
            SerialNumber = x.SerialNumber,
            Name = x.Name,
            Telephone = x.Telephone,
            Mobile = x.Mobile,
            Email = x.Email,
            QQ = x.QQ,
            MSN = x.MSN,
            Address = x.Address
        })
    };    
%>
<%= Html.ToJson(data) %>